package com.shenzhen.horselive.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.flqy.baselibrary.utils.GlideHelper;
import com.shenzhen.horselive.R;
import com.shenzhen.horselive.beans.AppBean;
import com.shenzhen.horselive.beans.MyAppBean;

import org.jetbrains.annotations.NotNull;

public class MyAppAdapter extends BaseQuickAdapter<AppBean, BaseViewHolder> {
    public MyAppAdapter(int layoutResId) {
        super(layoutResId);
    }

    @Override
    protected void convert(@NotNull BaseViewHolder baseViewHolder, AppBean s) {
        GlideHelper.loadImage(s.getApplicationLogo(),baseViewHolder.getView(R.id.img_app));
        baseViewHolder.setText(R.id.tv_name,s.getApplicationName());
        baseViewHolder.setText(R.id.tv_content,s.getApplicationDesc());
    }
}
